//书的信息
package book;

public class Book {
    private String code;//书号
    private String name;//书名
    private String author;//作者
    private int price;//价格
    private String data;//购买日期
    public Book next;//存放下一个节点

    public void setCode(String code) {
        this.code = code;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Book(String code, String name, String author, int price, String data) {
        this.code=code;
        this.name=name;
        this.author=author;
        this.price=price;
        this.data=data;
    }
    public Book() {
    }

    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getAuthor() {
        return author;
    }

    public int getPrice() {
        return price;
    }

    public String getData() {
        return data;
    }
}
